package cn.com.connext.scrm.repository.master;

import cn.com.connext.scrm.domain.master.DrawPrizeCount;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;


/**
 * 2 * @Author: xuebw
 * 3 * @Date: 2021/6/8 17:21
 * 4
 */
@Repository
public interface DrawPrizeCountRepository extends JpaRepository<DrawPrizeCount, Integer>, JpaSpecificationExecutor {
    @Query(value = "select * from draw_prize_count where activity_id=?1 and union_id = ?2", nativeQuery = true)
    DrawPrizeCount queryDrawPrizeCountByActivityId(String activity_id,String unionId);
}
